﻿using System;
using System.Collections.Generic;

namespace MyHomeworkWebAPi.Models.ef;

public partial class User
{
    public User()
    {
        Comments = new HashSet<Comment>();
        Orders = new HashSet<Order>();
        Products = new HashSet<Product>();
        Interactions = new HashSet<Interaction>();
        Messages = new HashSet<Message>();
    }

    /// <summary>
    /// 用户ID
    /// </summary>
    public Guid UserId { get; set; }

    /// <summary>
    /// 学号
    /// </summary>
    public string StudentId { get; set; } = null!;

    /// <summary>
    /// 用户名
    /// </summary>
    public string Nickname { get; set; } = null!;

    /// <summary>
    /// 密码
    /// </summary>
    public string Password { get; set; } = null!;

    /// <summary>
    /// 手机号
    /// </summary>
    public string Phone { get; set; } = null!;

    /// <summary>
    /// 头像
    /// </summary>
    public string? Avatar { get; set; }

    public virtual ICollection<Comment> Comments { get; set; }
    public virtual ICollection<Order> Orders { get; set; }
    public virtual ICollection<Product> Products { get; set; }
    public virtual ICollection<Interaction> Interactions { get; set; }
    public virtual ICollection<Message> Messages { get; set; }
}
